package com.msr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author tom
 * @version V1.0
 * @Package com.msr.controller
 * @date 2024/1/9 11:22
 * @Copyright © 株式会社多言语系统研究所
 * 通用控制器，实现页面的跳转
 */
@Controller
@RequestMapping("/index")
public class CommonController {
    @RequestMapping("/page_{page}")  // /index/page_left
    public String toPage(@PathVariable("page") String page){  //left
        return page;
    }
}
